PARAM([int]$PageSize,[int]$ImportLastCount)

$RoleSet1 = @("HR", "Admin", "Payrole")
$RoleSet2 = @("IT", "Helpdesk", "Support")
$MaxResult = 50

for ($i=$ImportLastCount; $i -le ($ImportLastCount+$PageSize-1) -and ($i -lt $MaxResult); $i++)
{
    $csObject = @{}
    $csObject.Add(".objectType","Person")
    $csObject.Add(".ObjectModificationType","Add")
    $csObject.Add("UniqueID","PSTest$i")
    $csObject.Add("Department|replace","TestDepartment4")
    $csObject.Add("Roles",$RoleSet1)
    #$csObject.Add("Roles|remove",$RoleSet2)
    #$csObject.Add(".ClearValue","")
    $csObject
}